﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DevComponents.AdvTree;

namespace PPI.Controls.Grid
{
    public class TreeGridBaseEventArgs : EventArgs
    {
        private Int32 m_ChildId;
        private Int32 m_ParentId;
        private Node m_Node;

        public int ChildId
        {
            get { return m_ChildId; }
        }

        public int ParentId
        {
            get { return m_ParentId; }
        }

        public Node Node
        {
            get { return m_Node; }
        }

        public TreeGridBaseEventArgs(Int32 parentId)
        :base()
        {
            m_ParentId = parentId;
            m_ChildId = Int32.MinValue;

        }

        public TreeGridBaseEventArgs(Int32 parentId, Int32 childId)
            :this(parentId)
        {
            m_ChildId = childId;
        }

        public TreeGridBaseEventArgs(Int32 parentId, Int32 childId, Node node)
        :this(parentId,childId)
        {
            m_Node = node;
        }
    }
}
